﻿using System.Web.Mvc;

namespace EditRegion.MVC
{
    /// <summary>
    /// Adds a helper method the System.Web.Mvc.HtmlHelper for the Edit Region
    /// </summary>
    public static class HtmlHelpers
    {
        public static EditRegionMarkUp EditRegion(this HtmlHelper helper, string contentId)
        {
            EditRegionMarkUp editRegionMarkUp = new EditRegionMarkUp(helper);
            return editRegionMarkUp.GetEditRegion(contentId);
        }
    }
}